from api_utils.voice_api import VoiceApi


class VoiceOperation:

   @staticmethod
   def call_user(mobile, content_order, contents):
       """
       mobile: 手机号
       content_order：模版序号
       contents：（"", "", "", "", "",）  元组类型，五个参数根据模版来填充
       """
       ret = VoiceApi.call_user(mobile, content_order, contents)
       if ret.get("msg") == "提交成功":
           print("电话通知成功")
           return True
       else:
           print("电话通知失败")
           return False